<template>
	<div class="flex">
		<TagChecked :options="CHECK_TIME_OPTIONS" @update:value="(val) => change(val, 'check')"></TagChecked>
		<a-range-picker :placeholder="['开始时间', '结束时间']" :valueFormat="dateFormat.split(' ')[0]"
			@change="(val: any) => change(val, 'check')"></a-range-picker>
	</div>
</template>
<script lang="ts" setup>
import TagChecked from '@/components/tag-checked/index.vue';
import { CHECK_TIME_OPTIONS, dateFormat } from '@/const';


// interface Props {
// 	value?: Array<string>;
// }
// const props = defineProps<Props>();

const emit = defineEmits(['update:value']);

const change = (value: any, type: string) => {
	console.log(value, type);
};


</script>

<style lang="less" scoped></style>
